<?php

namespace App\Containers\AppSection\Accreditation\Actions;

use App\Containers\AppSection\Accreditation\Tasks\CheckAccreditationTask;
use App\Containers\AppSection\Accreditation\UI\API\Requests\CheckAccreditationRequest;
use App\Ship\Parents\Actions\Action;

class CheckAccreditationAction extends Action
{
    public function run(CheckAccreditationRequest $request)
    {
        return app(CheckAccreditationTask::class)->run($request->profile()->id);
    }
}
